package com.pmsystem.dao;

import com.pmsystem.pojo.SecurityArea;
import com.pmsystem.pojo.SecurityAreaExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SecurityAreaMapper {
    long countByExample(SecurityAreaExample example);

    int deleteByExample(SecurityAreaExample example);

    int deleteByPrimaryKey(Integer securityAreaId);

    int insert(SecurityArea record);

    int insertSelective(SecurityArea record);

    List<SecurityArea> selectByExample(SecurityAreaExample example);

    SecurityArea selectByPrimaryKey(Integer securityAreaId);

    int updateByExampleSelective(@Param("record") SecurityArea record, @Param("example") SecurityAreaExample example);

    int updateByExample(@Param("record") SecurityArea record, @Param("example") SecurityAreaExample example);

    int updateByPrimaryKeySelective(SecurityArea record);

    int updateByPrimaryKey(SecurityArea record);

	/**  
	 * <p>Title: findallArea</p >  
	 * <p>Description: 查找所有安保区域数据</p >  
	 * @author 魏家洛
	 * @return  
	 */  
	List<SecurityArea> findAllArea(@Param("condition")String condition);

	/**  
	 * <p>Title: deleteAreaById</p >  
	 * <p>Description:通过安保区域Id删除安保区域数据</p >  
	 * @author 魏家洛  
	 */  
	int deleteAreaById(Integer id);

	/**  
	 * <p>Title: selectAreaById</p >  
	 * <p>Description: 通过安保区域id查找安保区域数据</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	SecurityArea selectAreaById(Integer id);

	/**  
	 * <p>Title: updateAreaByArea</p >  
	 * <p>Description: 更新安保区域数据</p >  
	 * @author 魏家洛
	 * @param securityArea
	 * @return  
	 */  
	int updateAreaByArea(SecurityArea securityArea);

	/**  
	 * <p>Title: addArea</p >  
	 * <p>Description:添加安保区域数据 </p >  
	 * @author 魏家洛
	 * @param securityAreaName
	 * @return  
	 */  
	int addArea(String securityAreaName);

	/**  
	 * <p>Title: selectAreaCount</p >  
	 * <p>Description: c</p >  
	 * @author 魏家洛
	 * @return  
	 */  
	int selectAreaCount(@Param("condition")String condition);

	/**  
	 * <p>Title: selectAreaPage</p >  
	 * <p>Description: 通过开始索引和数量查询安保区域对应信息</p >  
	 * @author 魏家洛
	 * @param pageNo
	 * @param pageSize
	 * @return  
	 */  
	List<SecurityArea> selectAreaPage(@Param("start") Integer start,@Param("pageSize") Integer pageSize,@Param("condition")String condition);
}